package com.fan.configService.util;

import org.apache.shiro.SecurityUtils;

/**
 * java类简单作用描述
 *
 * @Description: java类作用描述
 * @Author: hf
 * @CreateDate: 2019/6/21 14:38
 * @UpdateUser: hf
 * @UpdateDate: 2019/6/21 14:38
 * @UpdateRemark: The modified content
 * @Version: 1.0
 */

public class ShiroUtils {

    public static String getUserId() {
        Object principal = SecurityUtils.getSubject().getPrincipal();
        return principal.toString();
    }
}
